/*
============================================================================
 Name		: Flashbox4Document.cpp
 Author	  : ceze
 Copyright   : FlashBox for ver.Zhongyou(???)
 Description : CFlashbox4Document implementation
============================================================================
*/


// INCLUDE FILES
#include "Flashbox4AppUi.h"
#include "Flashbox4Document.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CFlashbox4Document::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CFlashbox4Document* CFlashbox4Document::NewL( CEikApplication& aApp )
	{
	CFlashbox4Document* self = NewLC( aApp );
	CleanupStack::Pop( self );
	return self;
	}

// -----------------------------------------------------------------------------
// CFlashbox4Document::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CFlashbox4Document* CFlashbox4Document::NewLC( CEikApplication& aApp )
	{
	CFlashbox4Document* self =
		new ( ELeave ) CFlashbox4Document( aApp );

	CleanupStack::PushL( self );
	self->ConstructL();
	return self;
	}

// -----------------------------------------------------------------------------
// CFlashbox4Document::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CFlashbox4Document::ConstructL()
	{
	// No implementation required
	}

// -----------------------------------------------------------------------------
// CFlashbox4Document::CFlashbox4Document()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CFlashbox4Document::CFlashbox4Document( CEikApplication& aApp )
	: CAknDocument( aApp )
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CFlashbox4Document::~CFlashbox4Document()
// Destructor.
// ---------------------------------------------------------------------------
//
CFlashbox4Document::~CFlashbox4Document()
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CFlashbox4Document::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CFlashbox4Document::CreateAppUiL()
	{
	// Create the application user interface, and return a pointer to it;
	// the framework takes ownership of this object
	return ( static_cast <CEikAppUi*> ( new ( ELeave )
										CFlashbox4AppUi ) );
	}

// End of File
